//引入createStore，用于创建最核心的一个store
import {createStore, applyMiddleware} from 'redux';
//引入reducer，用于操作状态
import reducer from './reducers/index';
import thunk from "redux-thunk";
import {composeWithDevTools} from 'redux-devtools-extension'

export default createStore(reducer,composeWithDevTools(applyMiddleware(thunk)));